package me.khrystal.rxnews.http;

/**
 * @FileName: me.khrystal.rxnews.http.Api.java
 * @Fuction: 常量接口
 * @author: kHRYSTAL
 * @email: 723526676@qq.com
 * @date: 2016-03-04 14:26
 * @UpdateUser:
 * @UpdateDate:
 */
public class Api {

    public static final String NETEAST_HOST = "http://c.m.163.com/";
    public static final String END_URL = "-20.html";
    public static final String ENDDETAIL_URL = "/full.html";

    // 头条
    public static final String HEADLINE_TYPE = "headline";
    public static final String HEADLINE_ID = "T1348647909107";

    // 房产
    public static final String HOUSE_TYPE = "house";
    // 房产id
    public static final String HOUSE_ID = "5YyX5Lqs";

    public static final String OTHER_TYPE = "list";

    public static String getType(String id) {
        switch (id) {
            case HEADLINE_ID:
                return HEADLINE_TYPE;
            case HOUSE_ID:
                return HOUSE_TYPE;
            default:
                break;
        }
        return OTHER_TYPE;
    }

    public static String getHost(int hostType){
        switch (hostType){
            case HostType.NETEASE_NEWS_VIDEO:
                return Api.NETEAST_HOST;
            case HostType.SINA_NEWS_PHOTO:
                return Api.SINA_PHOTO_HOST;
            case HostType.WEATHER_INFO:
                return Api.WEATHER_HOST;
        }
        return "";
    }

    // 足球
    public static final String FOOTBALL_ID = "T1399700447917";
    // 娱乐
    public static final String ENTERTAINMENT_ID = "T1348648517839";
    // 体育
    public static final String SPORTS_ID = "T1348649079062";
    // 财经
    public static final String FINANCE_ID = "T1348648756099";
    // 科技
    public static final String TECH_ID = "T1348649580692";
    // 电影
    public static final String MOVIE_ID = "T1348648650048";
    // 汽车
    public static final String CAR_ID = "T1348654060988";
    // 笑话
    public static final String JOKE_ID = "T1350383429665";
    // 游戏
    public static final String GAME_ID = "T1348654151579";
    // 时尚
    public static final String FASHION_ID = "T1348650593803";
    // 情感
    public static final String EMOTION_ID = "T1348650839000";
    // 精选
    public static final String CHOICE_ID = "T1370583240249";
    // 电台
    public static final String RADIO_ID = "T1379038288239";
    // nba
    public static final String NBA_ID = "T1348649145984";
    // 数码
    public static final String DIGITAL_ID = "T1348649776727";
    // 移动
    public static final String MOBILE_ID = "T1351233117091";
    // 彩票
    public static final String LOTTERY_ID = "T1356600029035";
    // 教育
    public static final String EDUCATION_ID = "T1348654225495";
    // 论坛
    public static final String FORUM_ID = "T1349837670307";
    // 旅游
    public static final String TOUR_ID = "T1348654204705";
    // 手机
    public static final String PHONE_ID = "T1348649654285";
    // 博客
    public static final String BLOG_ID = "T1349837698345";
    // 社会
    public static final String SOCIETY_ID = "T1348648037603";
    // 家居
    public static final String FURNISHING_ID = "T1348654105308";
    // 暴雪游戏
    public static final String BLIZZARD_ID = "T1397016069906";
    // 亲子
    public static final String PATERNITY_ID = "T1397116135282";
    // CBA
    public static final String CBA_ID = "T1348649475931";
    // 消息
    public static final String MSG_ID = "T1371543208049";
    // 军事
    public static final String MILITARY_ID = "T1348648141035";

    /**
     * 视频 http://c.3g.163.com/nc/video/list/V9LG4B3A0/n/10-10.html
     */
    public static final String Video = "nc/video/list/";
    public static final String VIDEO_CENTER = "/n/";
    public static final String VIDEO_END_URL = "-10.html";
    // 热点视频
    public static final String VIDEO_HOT_ID = "V9LG4B3A0";
    // 娱乐视频
    public static final String VIDEO_ENTERTAINMENT_ID = "V9LG4CHOR";
    // 搞笑视频
    public static final String VIDEO_FUN_ID = "V9LG4E6VR";
    // 精品视频
    public static final String VIDEO_CHOICE_ID = "00850FRB";

    /**
     * 天气预报url
     */
    public static final String WEATHER_HOST = "http://wthrcdn.etouch.cn/";

    /**
     * 新浪图片新闻
     */
    public static final String SINA_PHOTO_HOST = "http://api.sina.cn/sinago/";

    // 精选列表
    public static final String SINA_PHOTO_CHOICE_ID = "hdpic_toutiao";
    // 趣图列表
    public static final String SINAD_PHOTO_FUN_ID = "hdpic_funny";
    // 美图列表
    public static final String SINAD_PHOTO_PRETTY_ID = "hdpic_pretty";
    // 故事列表
    public static final String SINA_PHOTO_STORY_ID = "hdpic_story";

    // 图片详情
    public static final String SINA_PHOTO_DETAIL_ID = "hdpic_hdpic_toutiao_4";
}
